SuperStrict

rem
	bbdoc: Type description
end rem

Import "../base/ScintillaAbstractDriver.bmx"

Type ScintillaNullDriver Extends ScintillaAbstractDriver
	Field textarea:TGadget
	
	Method Init(panel:TGadget)
		textarea = CreateTextArea(0, 0, GadgetWidth(panel), GadgetHeight(panel), panel)
		SetGadgetLayout(textarea, 1, 1, 1, 1)
	End Method
	
	Method IsNullDriver:TGadget()
		Return textarea
	End Method
	
	Method SendEditor:Int(MSG:Int, wParam:Int = 0, lParam:Int = 0)
		Return - 1
	End Method
	
	Method DoPrint()
	End Method
End Type

Function CreateDriver:ScintillaAbstractDriver()
	Return New ScintillaNullDriver
End Function
